package com.lc.qianrenshiye.conn;

import com.zcx.helper.http.AsyCallBack;
import com.zcx.helper.http.AsyGet;
import com.zcx.helper.http.note.HttpInlet;

import org.json.JSONObject;

/**
 * Created by Administrator on 2017/1/5.
 */
@HttpInlet(Conn.WXPAY_DOWXPAY)
public class WXPayGet extends BaseAsyGet<String> {

    public String ordersn, type, discount, total_fee;

    public WXPayGet(AsyCallBack<String> asyCallBack) {
        super(asyCallBack);
    }

    @Override
    protected String parser(JSONObject object) throws Exception {

        TOAST = object.optString("message");

        if (object.optInt("code") == 200) {


            return object.optString("qrcode");

        }


        return null;
    }
}
